<style>
    .yen{border:none;height:0.75rem;width:0.75rem;display: inline-block;background: #ff4753;color:#fff;font-size:0.4rem;line-height: 0.8rem;text-align: center;
        font-style: normal;border-radius: 0.75rem;-webkit-border-radius: 0.75rem;}
    .order-create-page .fui-list.goods-item .fui-list-inner{
        height: 3.5rem;
        align-self: center;
    }
    .order-create-page .fui-list.goods-item .fui-list-angle{
        height: 3.5rem;
        align-self: center;
    }
    .order-create-page .fui-list-inner .subtitle{
        display: block;
    }
    .fui-header a.back2:before {
        content: " ";
        display: inline-block;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        height: 0.5rem;
        width: 0.5rem;
        border-width: 0 0 2px 2px;
        border-color: #666;
        border-style: solid;
        position: relative;
        top:0;
    }
.fui-btn-c {
    height: auto;
    margin: 0;
    padding: 0.4rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
	justify-content:center;
    align-items: center;
    position: relative;
}

.fui-btn-c .icon {
	font-size:1rem;
	padding-right:0.3rem;
	text-align:right;
}

.fui-btn-c .info {
	text-align:left;
    padding-right: 0.2rem;
    font-size: 0.75rem;
}

.fui-btn-c .info p {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.jylabel-red-0.active::after{content:" ";width:23px;height:24px;background:url(../core/resource/images/gou-red.png) no-repeat;position:absolute;float:right;right:-1px;bottom:-1px;text-align:center;}
.parent-category{float:left; width:100%; height:auto; min-height:100%;}
.parent-category ul{margin:0; padding:0; width:100%;}
.parent-category ul li{list-style:none; text-align:center; height:50px; line-height:50px; white-space:nowrap; width:100%; border-bottom:1px solid #e0e0e0; position:relative; right:-1px;}
.parent-category ul li.active{border-right:1px solid #fff; z-index: 10000}
.parent-category ul li a{color:#333; display:inline-block; width:100%; height:100%; text-decoration:none;}
.parent-category ul li.active a{color:#09ba07;}
.children-category{width:100%; min-height:100%; height:auto; color: #252525;}
.children-category ul{list-style:none; margin:0; padding:0; overflow-y:auto; overflow-x:hidden; border-left:1px solid #e0e0e0; min-height:100%;}
.children-category ul li{text-align:left; height: 32px; line-height: 32px; padding-left: 15px}
.children-category ul li.delivery-tips{height:25px; line-height:25px; margin-top: -15px; font-size: .65rem; color: #ff2d4b}
.children-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none; color:#333;}
.children-category ul li a span{font-size: .6rem; color: #999;}
.children-category .block{display:block; color:#ef1e15; font-size:.6rem;}
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fui-navbar .buybtn  {padding-left:0.3rem;background:#fff}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:1.95rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:linear-gradient(to right,rgba(129,2,138,1),rgba(238,2,253,1));color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:linear-gradient(to right,rgba(211,5,5,1),rgba(255,8,8,1));}
.fee-tagup-nav {background:linear-gradient(to right,rgba(129,2,138,1),rgba(190,0,205,1));}
.fee-disabled-nav {background:#bbb;color:#fff;}	
</style>
<div class='fui-page order-detail-page'>
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" href="javascript:;" ng-click="access_json('jy_weishop_cutprice/detail//id='+pagedata.post.actid)" ></a>
        </div>
        <div class="title">创建订单</div>
        <div class="fui-header-right"></div>
    </div>
    <div class='fui-content navbar'>
            <div class="fui-cell-group fui-cell-click">
			<div id="addressInfo" class="fui-cell-group fui-address-group" style="margin-top:0px">
				<div ng-if="pagedata.item.addressid" class="fui-cell">
					<div style="width:100%">
						<div class="fui-cell-text name bold" style="font-size:0.8rem">
							<span style="margin-right:20px">{{pagedata.item.address.name}}</span><span>{{pagedata.item.address.mobile}}</span>
						</div>
						<div class="fui-cell-text name" style="margin-top:5px">
							<!--预售完成-->
							<i class="fui-tag fui-tag-red">默认</i>
							<i class="fui-tag fui-tag-blue">家</i>
							{{pagedata.item.address.pcd.province+pagedata.item.address.pcd.city+pagedata.item.address.pcd.district+pagedata.item.address.address}}
						</div>
					</div>
					<div class="fui-cell-remark" ng-click="modal_func(pagedata.item,'address','core/member.address/')" ></div>
				</div>
				<div ng-if="!pagedata.item.addressid" class="fui-list-inner" ng-click="access_json('core/member.address/edit')">
						<div class="text no-address" ><i class="icon jinyunicon icon-tianjia"></i> 添加收货地址</div>
				</div>
			</div>               
            </div>
        <div class="fui-list-group goods-list-group">
            <a href="javascript:;" ng-click="access_json('jy_weishop_cutprice/detail//id='+pagedata.post.actid)" class="external">
                <div class="fui-list goods-list" style="background:#fff">
                    <div class="fui-list-media">
                        <img src="{{tomedia(pagedata.act.image)}}" alt="{{pagedata.goods.title}}" class="round" onerror="this.src='../addons/ewei_shopv2/static/images/nopic100.jpg'">
                    </div>
                    <div class="fui-list-inner">
                        <div class="text goodstitle">{{pagedata.act.goods.title}}</div>
                        <div ng-if="pagedata.optionid" class='subtitle' style="font-size:0.6rem;color:#999;">规格：{{pagedata.goods.optiontitle}}</div>
                    </div>
                    <div class='fui-list-angle'>
						<span class='marketprice'>
                            价格<br />&yen;{{pagedata.post.price}}
				            <br/>   x {{pagedata.post.num ||'1'}}
                        </span>
                    </div>
                </div>
            </a>
        </div>      
        <div class='fui-cell-group price-cell-group' style="margin-top:0">
            <div class="fui-cell">
                <div class="fui-cell-label">商品小计</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark red">&yen;{{pagedata.post.fee}}</div>
            </div>
        </div>
    </div>

    <div class='fui-footer fui-navbar order-create-checkout'>
        <p class="nav-item" style="width:10%;text-align: left;padding:0.3rem;font-size:0.7rem;">
            需付：
            <span class="text-danger2" style="background: none;">
          
                        <span class="moneydispatch">&yen;{{pagedata.post.fee}}</span>
                      
            </span>
        </p>
        <a href='javascript:;' ng-click="pagedata.pay()" class="nav-item btn btn-danger buybtn" id="openActionSheet">
		<div class="fee-tagup-nav">
				立即支付
		</div>
		</a>
    </div>
	
<script>	
	scope.pagedata.pay=function(){
	var params={
		data:{'actid':scope.pagedata.post.actid,'addressid':scope.pagedata.item.addressid,'fee':scope.pagedata.post.fee,'num':scope.pagedata.post.num},
		op:'pay',
		callback:function(res){
			if(res.payid){
				require(['tool'],function(tool){
					tool.pay(res.payid,function(re){
						if(re.type=='success'){
							scope.message('支付成功！','','jy_weishop_cutprice/order//status=1');
							
						}else{
							scope.message('支付失败！失败原因：'+re.message,'error');
						}
					});
				});
			}
		}
	};
	scope.post_json(params);

}
</script>